import Mock from 'mockjs'
import homeApi from './mockServeData/home'
import test from './mockServeData/test'
import userApi from './mockServeData/user'
import permissionApi from './mockServeData/permission'


Mock.mock('/home/getData', homeApi.getStaticalData);

Mock.mock(/user\/add/, 'post', userApi.createUser);
Mock.mock(/user\/edit/, 'post', userApi.updateUser);

Mock.mock(/user\/getUser/, 'get', userApi.getUserList);
Mock.mock(/user\/del/, 'post', userApi.deleteUSer);

Mock.mock(/permission\/getMenu/, 'post', permissionApi.getMenu);

Mock.mock('/home/test', test);